<template>
  <div>
    <a-row :gutter="10">
      <a-col :span="4">
        <FormSelect></FormSelect>
      </a-col>
      <a-col :span="20">
        <ColumnCount formId="1866410470560944130"></ColumnCount>
        <ZgNewPage
          title="字段管理"
          addBtnName="新增字段"
          addBtnIcon="plus-circle"
          :conditions="conditions"
          :batchBtns="batchBtns"
          :dataBtns="dataBtns"
        >
          <template slot="columns">
            <a-table-column title="字段名称">
              <template slot-scope="record">
                {{ record.x }}
              </template>
            </a-table-column>
            <a-table-column title="字段名称">
              <template slot-scope="record">
                {{ record.x }}
              </template>
            </a-table-column>
            <a-table-column title="字段名称">
              <template slot-scope="record">
                {{ record.x }}
              </template>
            </a-table-column>
            <a-table-column title="字段名称">
              <template slot-scope="record">
                {{ record.x }}
              </template>
            </a-table-column>
            <a-table-column title="字段名称">
              <template slot-scope="record">
                {{ record.x }}
              </template>
            </a-table-column>
            <a-table-column title="字段名称">
              <template slot-scope="record">
                {{ record.x }}
              </template>
            </a-table-column>
            <a-table-column title="字段名称">
              <template slot-scope="record">
                {{ record.x }}
              </template>
            </a-table-column>
            <a-table-column title="字段名称">
              <template slot-scope="record">
                {{ record.x }}
              </template>
            </a-table-column>
          </template>
        </ZgNewPage>
      </a-col>
    </a-row>
  </div>
</template>
<script>
import ColumnCount from './Count'
import FormSelect from '@/views/autoform/form/Select'
export default {
  components: {
    FormSelect, ColumnCount
  },
  data () {
    return {
      conditions: [
        { code: 'select', compType: '下拉选择', label: '性别', defaultVal: '', extra: { 下拉选项: [{ value: '1', label: '男111s' }, { value: '2', label: '女' }] } },
        { code: 'birth', compType: '日期区间', label: '生日', defaultVal: ['', ''] },
        { code: 'age', compType: '整数区间', label: '年龄', defaultVal: [0, 100] },
        { code: 'birth1', compType: '日期', label: '生日1', defaultVal: '2025-05-23' },
        { code: 'age1', compType: '整数', label: '年龄1', defaultVal: 0 },
        { code: 'name', compType: '单行文本', label: '姓名', defaultVal: '' },
        { code: 'political', compType: '字典', label: '政治面貌', defaultVal: '', extra: { 字典类型: 'political' } },
        { code: 'is_use', compType: '布尔', label: '启用1', defaultVal: 'false' },
        { code: 'other1', compType: '单行文本', label: 'other1', defaultVal: '' },
        { code: 'other2', compType: '单行文本', label: 'other2', defaultVal: '' },
        { code: 'other3', compType: '单行文本', label: 'other3', defaultVal: '' },
        { code: 'other4', compType: '单行文本', label: 'other4', defaultVal: '' },
        { code: 'other5', compType: '单行文本', label: 'other5', defaultVal: '' },
        { code: 'other6', compType: '单行文本', label: 'other6', defaultVal: '' },
        { code: 'other7', compType: '单行文本', label: 'other7', defaultVal: '' }
      ],
      batchBtns: [
        { key: 1, label: '批量删除' },
        { key: 2, label: '批量修改' },
        { key: 3, label: '数据排序' },
        { key: 4, label: 'Excel导入' },
        { key: 5, label: 'Excel导出' }
      ],
      dataBtns: [
        { key: 1, name: '删除', type: 'link', icon: 'fa-trash', isShow: () => { return true } },
        { key: 2, name: '修改', type: 'link', icon: 'fa-pencil', isShow: () => { return true } },
        { key: 3, name: '附件', type: 'link', icon: 'fa-file', isShow: () => { return true } }
      ]
    }
  },
  mounted () {
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
</style>
